{extend name="property/public/insidePageBase" /}
{block name="title"}分类详情{/block}
{block name="body"}
<div class="layuimini-container">
    <div class="layuimini-main">
        <div class="layui-form  layui-form-pane">
            <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
                <div class="layui-tab layui-tab-brief">
                    <!--基本信息 add-->
                    <div class="layui-form-item">
                        <label class="layui-form-label">分类描述</label>
                        <div class="layui-input-block">
                            <input type="text" value="{$info['desc'] ?? ''}" readonly autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <table class="layui-hide" id="articleFaqList" lay-filter="articleFaqList"></table>
                    <script type="text/html" id="picture_tpl">
                        <img src="{{ d.picture }}" style="height:100%" class="checkPictureByImg" />
                    </script>
                    <script type="text/html" id="is_show_tpl">
                        <input type="checkbox" lay-skin="switch" value="{{ d.id }}" disabled lay-filter="status" {{# if(d.is_show == 1) { }}checked{{# } }} lay-text="显示|隐藏" />
                    </script>
                    <script type="text/html" id="is_top_tpl">
                        <input type="checkbox" lay-skin="switch" value="{{ d.id }}" disabled lay-filter="statusTop" {{# if(d.is_top == 1) { }}checked{{# } }} lay-text="己置顶|置顶" />
                    </script>
                    <!--基本信息 add-->
                </div>
            </div>
        </div>
    </div>
</div>
{/block}
{block name="js"}
{__block__}
<script>
    layui.use(['laydate','table','upload'], function () {
        var laydate = layui.laydate, table = layui.table,upload = layui.upload;
        let cateIid = {$info['id']};
        // 常见问题列表 add
        var tableIdArticleFaqList = 'articleFaqList';
        table.render({
            elem: '#'+tableIdArticleFaqList,
            id:tableIdArticleFaqList,
            url: '{:url("propertyArticleFaqList")}?id='+cateIid,
            toolbar: '#toolArticleFaq',
            cols: [[
                {type: "checkbox", width: 50},
                {field: 'title', width: 280, title: '文章标题'},
                {field: 'picture', width: 100, title: '封面图片',templet:'#picture_tpl'},
                {field: 'is_show',  title: '是否显示', width: 108, templet:'#is_show_tpl', sort: true, align: "center"},
                {field: 'is_top',  title: '是否置顶', width: 120, templet:'#is_top_tpl', sort: true, align: "center"},
                {field: 'add_time', minWidth: 180, title: '创建时间', sort: true},
            ]],
            limits: [10, 15, 20, 25, 50, 100],
            limit: 15,
            page: true,
            height: 'full-100'
        });
        // 常见问题列表 end
    });
</script>
{/block}